import adminApi from '@/request/admin'
import api from '@/request/classadmin'
import { roles } from '@/data/dict'
async function getAdminList () {
	const result = []
	const admins = await adminApi.getList()
	admins.forEach(i => {
		result.push({
			label: i.name,
			value: i.id,
		})
	})
	return result
}
export default {
	getAdminList,
	roles,
	add: api.add,
	getTableData: api.getTableData
}